package com.ztman.cusview.customView;

import android.content.Context;
import android.support.annotation.Px;
import android.util.AttributeSet;
import android.view.ViewGroup;

/**
 * Created by YJH on 2017/12/12.
 */

public class LoveLayoutParam extends ViewGroup.MarginLayoutParams {
    protected int position = 0;
    public LoveLayoutParam(Context c, AttributeSet attrs) {
        super(c, attrs);

//        TypedArray a = c.obtainStyledAttributes(attrs, R.styleable.CustomLayout );
//        //获取设置在子控件上的位置属性
//        position = a.getInt(R.styleable.CustomLayout_layout_position ,position );

//        a.recycle();
    }

    public LoveLayoutParam(@Px int width, @Px int height) {
        super(width, height);
    }

    public LoveLayoutParam(ViewGroup.MarginLayoutParams source) {
        super(source);
    }
}
